<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="button" value="隐藏">
<input type="button" value="显示">
<input type="button" value="淡出">
<input type="button" value="淡入">
<input type="button" value="上滑">
<input type="button" value="下滑">
<input type="button" value="自定义">
<hr>
<img src="12.webp" style="width: 300px; position:relative" alt="">
<script src="jq.js"></script>
<script>
    $("input:eq(0)").click(function () {
        $("img").hide(2000);//隐藏
    });
    $("input:eq(1)").click(function () {
        $("img").show(2000);//显示
    });
    $("input:eq(2)").click(function () {
        $("img").fadeOut(2000);//淡出
    });
    $("input:eq(3)").click(function () {
        $("img").fadeIn(2000);//淡入
    });
    $("input:eq(4)").click(function () {
        $("img").slideUp(2000);//上滑
    });
    $("input:eq(5)").click(function () {
        $("img").slideDown(2000);//下滑
    });
    $("input:eq(6)").click(function () {
        $("img").animate({"left":"500px"},1000)
            .animate({"top":"500px"},1000)
            .animate({"left":"0"},1000)
            .animate({"top":"0px"},1000)
            .animate({"width":"2000px"},2000)
            .animate({"width":"300px"},2000);
    });

</script>
</body>
</html>